package com.alipay.servlet;

import java.io.IOException;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.alipay.common.PayParam;

public class AlipayServlet extends HttpServlet {
		
	/**
	 * 
	 */
	private static final long serialVersionUID = -3631240065121634349L;

	@Override
	protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
		// TODO Auto-generated method stub
		super.doGet(req, resp);
	}
	
	@Override
	protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException {

		//获取参数
		PayParam param=new PayParam();
		param.setOrderNo(request.getParameter("WIDout_trade_no"));//订单号
		param.setOrderAmount(request.getParameter("WIDtotal_fee"));//支付金额
		param.setProductName(request.getParameter("WIDsubject"));//订单名
		param.setProductRemark(request.getParameter("WIDbody"));//订单描述
		
		
	}

}
